package com.project.pojo.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Description: 添加回收品类入参类
 * @Author: zhuchi
 * @CreateDate: 2020/11/13 21:18
 * @Version: 1.0
 */
@Data
@ApiModel(value = "添加回收品类入参类")
public class AddRecoveryTypeModel {

    /**
     * 上级ID
     */
    @ApiModelProperty(value = "上级ID")
    private Long parentId = 0L;

    /**
     * 类型名称
     */
    @NotBlank(message = "请输入类型名称")
    @ApiModelProperty(value = "类型名称")
    private String typeName;

    /**
     * 类型图片
     */
    @NotBlank(message = "请上传类型名称")
    @ApiModelProperty(value = "类型图片")
    private String typeImg;

    /**
     * 价格
     */
    @NotNull(message = "请输入价格")
    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    /**
     * 单位
     */
    @ApiModelProperty(value = "单位")
    private String unit = "斤";

    /**
     * 品类介绍
     */
    @ApiModelProperty(value = "品类介绍")
    private String introduction;

    /**
     * 排序
     */
    @NotNull(message = "请输入排序")
    @ApiModelProperty(value = "排序（越大越靠前）")
    private Integer sort = 0;

}
